//笔试强训:求最小公倍数

#include <iostream>
using namespace std;

int main() {
    int a, b;
    while (cin >> a >> b) { // 注意 while 处理多个 case
        long int min = a, max = b;
        if(min > max)
            swap(min, max);
        
        int i = min;
        for(; i > 0; i--)
        {
            if(min % i == 0 && max % i == 0)
                break;
        }

        cout << min / i * max << endl;
    }
}